
package net.qiqbframework.commandhandling;

import net.qiqbframework.common.ImmutableException;


/**
 * 命令执行器没找到
 */
public class CommandHandlerNotFoundException extends ImmutableException {


    public CommandHandlerNotFoundException(String message) {
        super(message);
    }


    public CommandHandlerNotFoundException(CommandMessage<?> commandMessage) {
        this("[%s]命令找不到对应的处理器.请确认命令名称和处理器的名称是否一致".formatted(commandMessage.getCommandName()));
    }
}
